<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<ui:composition 
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:sf="http://code.google.com/p/stew-faces">

	<h:panelGroup id="selectwrapper" layout="block">
		<sf:filteringSelect id="test" value="#{selectBean.selectValue}">
			<f:selectItem itemValue="1" itemLabel="1" />
			<f:selectItem itemValue="2" itemLabel="2" />
			<f:ajax event="change" execute=":mainForm:selectwrapper"
				render=":mainForm:outputtest" listener="#{selectBean.listener}"></f:ajax>
		</sf:filteringSelect>
	</h:panelGroup>
	<h:panelGroup id="outputwrapper" layout="block">
		<h:outputText
			value="Value of the property selectValue: #{selectBean.selectValue}"
			id="outputtest" />
	</h:panelGroup>
</ui:composition>
</html>